Depth First Search With Python